package com.baofu.paycore.biz.engine.executor;

import com.baofu.paycore.biz.engine.command.Command;
import com.baofu.paycore.biz.engine.result.CommandResult;

import java.util.List;
import java.util.Map;

/**
 * 命令执行器
 *
 * <p/>
 *      1、执行命令
 * </p>
 * User: LZQ Date: 2016/04/22  Version: 1.0
 */
public interface CommandExecutor {

    /**
     *
     * 指令执行器
     *
     * @param commands 命令
     * @return         处理结果集
     */
    Map<String, CommandResult> executeCommand(List<Command> commands);
}
